﻿// Cấu hình routeProvider
app.config(function ($routeProvider) {
    $routeProvider.when('/adm/', {
        templateUrl: '/vws/adm/index.html',
        controller: 'IndexCtrl'
    });
    $routeProvider.when('/adm/master/items/list', {
        templateUrl: '/vws/adm/ma/items/list.html',
        controller: 'MaItemsListCtrl'
    });
    $routeProvider.when('/adm/master/items/entry/:Status?/:ItemCd?', {
        templateUrl: '/vws/adm/ma/items/entry.html',
        controller: 'MaItemsEntryCtrl'
    });
    $routeProvider.when('/adm/master/items/entry/:Status/:CallType/:ItemCd', {
        templateUrl: '/vws/adm/ma/items/entry.html',
        controller: 'MaItemsEntryCtrl'
    });
    $routeProvider.when('/adm/master/itemtypes/list', {
        templateUrl: '/vws/adm/ma/itemtypes/list.html',
        controller: 'MaItemTypesListCtrl'
    });
    $routeProvider.when('/adm/master/itemtypes/entry/:Status?/:TypeCd?', {
        templateUrl: '/vws/adm/ma/itemtypes/entry.html',
        controller: 'MaItemTypesEntryCtrl'
    });
    $routeProvider.when('/adm/master/itemtypes/entry/:Status/:CallType/:TypeCd', {
        templateUrl: '/vws/adm/ma/itemtypes/entry.html',
        controller: 'MaItemTypesEntryCtrl'
    });
    $routeProvider.when('/adm/master/categories/list', {
        templateUrl: '/vws/adm/ma/categories/list.html',
        controller: 'MaCategoriesListCtrl'
    });
    $routeProvider.when('/adm/master/categories/entry/:Status?/:CategoryCd?', {
        templateUrl: '/vws/adm/ma/categories/entry.html',
        controller: 'MaCategoriesEntryCtrl'
    });
    $routeProvider.when('/adm/master/categories/entry/:Status/:CallType/:CategoryCd', {
        templateUrl: '/vws/adm/ma/categories/entry.html',
        controller: 'MaCategoriesEntryCtrl'
    });
    $routeProvider.when('/adm/master/photos/list', {
        templateUrl: '/vws/adm/ma/photos/list.html',
        controller: 'MaPhotosListCtrl'
    });
    $routeProvider.when('/adm/master/photos/entry/:Status?/:PhotoCd?', {
        templateUrl: '/vws/adm/ma/photos/entry.html',
        controller: 'MaPhotosEntryCtrl'
    });
    $routeProvider.when('/adm/master/photos/entry/:Status/:CallType/:PhotoCd', {
        templateUrl: '/vws/adm/ma/photos/entry.html',
        controller: 'MaPhotosEntryCtrl'
    });
    $routeProvider.when('/adm/master/slides/list', {
        templateUrl: '/vws/adm/ma/slides/list.html',
        controller: 'MaSlidesListCtrl'
    });
    $routeProvider.when('/adm/master/slides/entry/:Status?/:SlideCd?', {
        templateUrl: '/vws/adm/ma/slides/entry.html',
        controller: 'MaSlidesEntryCtrl'
    });
    $routeProvider.when('/adm/master/slides/entry/:Status/:CallType/:SlideCd', {
        templateUrl: '/vws/adm/ma/slides/entry.html',
        controller: 'MaSlidesEntryCtrl'
    });

    $routeProvider.when('/adm/settings/system', {
        templateUrl: '/vws/adm/settings/system.html',
        controller: 'SettingsSystemCtrl'
    });
    $routeProvider.when('/adm/settings/info', {
        templateUrl: '/vws/adm/settings/info.html',
        controller: 'SettingsInfoCtrl'
    });
    $routeProvider.when('/adm/users/profile', {
        templateUrl: '/vws/adm/users/profile.html',
        controller: 'UsersProfileCtrl'
    });
    $routeProvider.otherwise({ redirectTo: '/adm/' });
});